<template>
  <div class="war">
    <div class="area-center">
      <head-page
        :title="
          $route.query.provincial ? $route.query.provincial : $route.query.item
        "
      >
      </head-page>
      <div class="center m-t-0">
        <!-- 各商会的区域 -->
        <div class="bottom">
          <div
            class="small title-center "
            v-for="(item, index) in list"
            :key="index"
            @click="chamfive(item)"
          >
            <div class="left">
              <div class="yuan"></div>
            </div>
            <div class="right">
              {{ item }}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
  
  <script>
import { getCity } from "@/api/common";
export default {
  data() {
    return {
      list: [],
      num: this.$route.query.name,
      city: sessionStorage.getItem("province"),
    };
  },
  mounted() {
    //各省商会(根据省份查找商会类型)
    getCity({
      pid: this.$route.query.id,
    }).then((res) => {
      if (res.data.code == 200) {
        this.list = res.data.data;
      }
    });
  },
  methods: {
    chamfive(i) {
      this.$router.push({
        path: "/chamberfive",
        query: {
          i,
          provincial: this.$route.query.provincial
            ? this.$route.query.provincial
            : this.$route.query.item,
        },
      });
    },
  },
};
</script>
  
  <style scoped>
.box {
  width: 100%;
  /* min-height: 2.78rem; */
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 头标区域 */
.top h3 img {
  width: 0.24rem;
  margin-right: 0.05rem;
}
.small {
  display: inline-flex;
  margin: .03rem 0.1rem;
}
.small .left {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.06rem;
}
.small .left .yuan {
  width: 0.15rem;
  height: 0.15rem;
  border-radius: 50%;
  background-color: black;
}
.small .right {
  line-height: 0.3rem;
  padding-top: 0.01rem;
}
</style>